#ifndef AC_CONTROLLER_MAIN_H
#define AC_CONTROLLER_MAIN_H
#include "canbus.h"
#include "types.h"
#include "uart.h"


#define THROTTLE_FAULT_RAW 100		// if below this value, then bad throttle!
#define THROTTLE_FAULT_COUNTS 200  // number of milliseconds it must be bad throttle.
#define THERMAL_CUTBACK_START 670		// start at 75 degC, end at 85 degC

#define THROTTLE_FAULT (1 << 0)
#define VREF_FAULT (1 << 1)
#define PRECHARGE_FAULT (1 << 2)

#define BAUD_RATE 19200

#endif
